package cn.sample.config.mp;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.github.yitter.idgen.YitIdHelper;
import org.springframework.stereotype.Component;

/**
 * <h2></h2>
 *
 * <p></p>
 *
 * @author HKD
 */
@Component
public class CustomIdGenerator implements IdentifierGenerator {
    @Override
    public Number nextId(Object entity) {
        return YitIdHelper.nextId();
    }
}


